package co2.bean;

import javax.faces.convert.FacesConverter;

import co2.pojos.MstUser;


public class UserConverter extends AbstractConverter{
	
	@Override
    public String getConversionId(Object value) {

        if (value instanceof MstUser) {
        	MstUser entity = (MstUser) value;
        	
            StringBuilder sb = new StringBuilder();
            sb.append(entity.getClass().getSimpleName());
            sb.append("@");
            sb.append(entity.getUserId());
            return sb.toString();
        }

        return null;
    }
	 
}
